{include file="admin/header.tpl" title="header" }


<div id="content">
      {php} echo display_msg(); {/php}
      
      <div class="backlink" id="backbutton_link" align="right"><a href="{$baseurl}/admin/trivia.php"> Back </a></div>
      
      <h2>Trivia Report</h2>
      
       <!--<div class="lstable">
       <form action="{$baseurl}/admin/trivia.php" name="" method="post">
      
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="15%" align="left" valign="middle"><strong>Trivia Question :</strong></td>
            <td width="20%" align="left" valign="middle"><input type="text" name="question" value="{$post.question}"  /></td>
            <td width="65%">&nbsp;</td>
          </tr>
           <tr>
            <td align="left" valign="middle">&nbsp;</td>
            <td align="left" valign="middle">
            	<input type="submit"  class="btncss" name="submit" class="btnSearch" value="Search" /> &nbsp;
                <input class="btncss" type="button" onclick="location.href='{$baseurl}/admin/trivia.php'" value="Reset" />
               </td>
          </tr>
        </table>
        </form>
      </div>
       <div><img src="{$admin_imgurl}/spacer.gif" width="1" height="25" alt="spacer" /></div>-->
      
      <div>
      	
        <table cellspacing="0" cellpadding="0" class="engineTable">
          <thead>
            <tr >
              <th width="8%" align="center" valign="top">Sr.No</th>
              <th width="15%" align="left" valign="top">User Name</th>
              <th width="15%" align="left" valign="top">Email</th>
              <th width="10%" align="left" valign="top">Contact</th>
              <th width="10%" align="left" valign="top">city</th>
              <th width="10%" align="left" valign="top">Total Questions</th>
              <th width="10%" align="left" valign="top">Correct Answers</th>
              <th width="10%" align="left" valign="top">Wrong Answers</th>
            </tr>
          </thead>
          <tbody>
          {assign var='counter' value=$pagination_start}
       	{foreach from=$report_data item=row}
            {assign var='counter' value=$counter+1}     
            <tr class="{cycle values="even,odd"}">
              <td align="center" valign="top">{$counter}</td>
              <td align="left" valign="top">{$row.name}</td>
              <td align="left" valign="top">{$row.email}</td>
               <td align="left" valign="top">{$row.contact}</td>
                <td align="left" valign="top">{$row.city}</td>
              <td align="left" valign="top">{$row.total_questions}</td>
              <td align="left" valign="top">{$row.total_correct}</td>
              <td align="left" valign="top">{$row.total_wrong}</td>
            </tr>
        {foreachelse}
           <tr><td colspan="6" align="center"> No Record Found </td></tr>
        {/foreach}
            
          </tbody>
        </table>
       
        <div class="pagination tn"> 
        	<div class="page_limit_div">
        		 {$page_limit_select}
	        </div>
        {$pagination}
          <div class="totalno"><strong>Total Records:</strong> {$total_records}</div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    
     {include file="admin/footer.tpl" title="footer"}   